﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class student_information:Person
    {
        private string major;
        private string grade;

        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public void student()
        {

            this.Id = 1;
            this.Name = "李四";
            this.Sex = "男";
            this.Cardid = 56498;
            this.Tel = 54856654;
            this.major = "软件技术";
            this.grade = "软件一班";

        }
        public student_information(string name)
        {
            student();
            Console.WriteLine(this.Id);
            Console.WriteLine(this.Name);
            Console.WriteLine(this.Sex);
            Console.WriteLine(this.Cardid);
            Console.WriteLine(this.Tel);
            Console.WriteLine(this.major);
            Console.WriteLine(this.grade);
        }


    }
}
